var product_url = "/product/";
var productdata=[];
productManage_obj = extend(module,{
	id:'productManage',
	html:"<div id=\"productManage\" class=\"mainblock\"><div><input name='productSk'/><a class='so' href='javascript:void(0);'>搜索</a></div></div>"
});
lvan.m.productManage = function() {
	productManage_obj.init();
};
setTimeout(function() {
	req(product_url+"query",{},function(t) {
		productdata = t.data;
	});
},500);

var productHTML = function(name,id,className) {
	var html = "<select id='"+id+"' class='"+className+"' name='"+name+"'>";
	for(var i=0; i<productdata.length; i++) {
		html+="<option value='"+productdata[i].value+"'>"+productdata[i].name+"</option>";
	}
	html+="</select>";
	return html;
};